const express = require("express");
// 使用express路由
const companyRouter = express.Router();
// 导入路由处理模块
const companyController = require("../Controller/company");

// 修改轮播图
companyRouter.post("/uploadSwiper", companyController.uploadSwiper);
// 获取轮播图
companyRouter.get("/getAllSwiper", companyController.getAllSwiper);
// 获取公司名称
companyRouter.get("/getCompanyName", companyController.getCompanyName);
// 修改公司名称
companyRouter.post("/setCompanyName", companyController.setCompanyName);
// 修改公司信息
companyRouter.post("/setCompanyInfo", companyController.setCompanyInfo);
// 获取公司信息
companyRouter.get("/getCompanyInfo", companyController.getCompanyInfo);

// 对外暴露路由
module.exports = companyRouter;
